﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Globalization;
using System.Web.Mvc;
using System.Xml;
using Web_consultant.Database;
using Web_consultant.Database.Models;
using Web_consultant.Models;

namespace Web_consultant.Controllers
{
    public class TestsController : Controller
    {
        //
        // GET: /Tests/

        public ActionResult DomainAnalysis()
        {
            ViewBag.Message = "Анализ проблемной области на применимость технологии СОЗ(ЭС).";
            //string path = @"E:\SOZ\ryba\Web-consultant2\Web-consultant\data\data.xml";
            string path = @"D:\projects\ryba\Web-consultant2\Web-consultant2\Web-consultant\data\data.xml";
            Test model = XmlParsing(path, "DomainAnalysis");
            var result = new TestResult(model.Questions.Count, model.NameTest);
            ViewBag.Test = model;
            return View(result);
        }

        [HttpPost]
        public ActionResult DomainAnalysis2(TestResult model)
        {
            var result = DomainCount(model);
            string solution;
            if (result >= 7.2)
                solution = "Разработка уместна. ";
            else if (result < 7.2 && result >= 2.4)
                solution = "Возможно, что разработка уместна. ";
            else if (result <= 2.4 && result >= -2.4)
                solution = "Конфликтная ситуация, для вынесения промежуточного результата об уместности недостаточно введенной информации. ";
            else solution = "Разработка неуместна. ";
            int kod;
            if (solution == "Разработка уместна. ")
                kod = 1;
            else if (solution == "Возможно, что разработка уместна. ")
                kod = 2;
            else kod = 3;
            ViewBag.Message = "Анализ проблемной области на применимость технологии СОЗ(ЭС).";
            //string path = @"E:\SOZ\ryba\Web-consultant2\Web-consultant\data\data2.xml";
            string path = @"D:\projects\ryba\Web-consultant2\Web-consultant2\Web-consultant\data\data2.xml";
            Test model2 = XmlParsing(path, "DomainAnalysis2");
            var result2 = new TestResult(model2.Questions.Count, model2.NameTest);
            result2.Koeff = result;
            string tempStr = result2.Koeff.ToString(CultureInfo.InvariantCulture);
            result2.Res = solution;
            result2.Kod = kod;
            ViewBag.Koeff = "Коэффициент применимости: " + tempStr;
            ViewBag.Test = model2;
            ViewBag.Sol = result2.Res;
            return View(result2);
        }

        [HttpPost]
        public ActionResult DomainAnalysis3(TestResult model)
        {
            var result = DomainCount(model);
            string solution;
            int kod;
            if (result >= 7.2)
            solution = "Разработка оправдана. ";
            else solution = "Разработка неоправдана. ";
            if (solution == "Разработка оправдана. ")
                kod = 1;
            else if (solution == "Разработка неоправдана. ")
                kod = 2;
            else kod = 3;
            ViewBag.Message = "Анализ проблемной области на применимость технологии СОЗ(ЭС).";
            //string path = @"E:\SOZ\ryba\Web-consultant2\Web-consultant\data\data3.xml";
            string path = @"D:\projects\ryba\Web-consultant2\Web-consultant2\Web-consultant\data\data3.xml";
            Test model2 = XmlParsing(path, "DomainAnalysis3");
            var result2 = new TestResult(model2.Questions.Count, model2.NameTest);
            result2.Koeff = model.Koeff + result;
            string tempStr = result2.Koeff.ToString(CultureInfo.InvariantCulture);
            result2.Res = model.Res + solution;
            //result2.Res = model.Res + solution;
            result2.Kod2 = kod;
            result2.Kod = model.Kod;
            ViewBag.Koeff = "Коэффициент применимости: " + tempStr;
            ViewBag.Sol = result2.Res;
            ViewBag.Test = model2;
            return View(result2);
        }

        public ActionResult DomainAnalysis4()
        {

            var result2 = new TestResult(3, "Result1");
            result2.IdTest = 1;
            int num;
            string res = TestCount(result2, out num);
            ViewBag.Message = "Анализ проблемной области на применимость технологии СОЗ(ЭС).";
            string tempStr = result2.Koeff.ToString(CultureInfo.InvariantCulture);
            ViewBag.Sol = result2.Res + res;
            ViewBag.Koeff = "Коэффициент применимости: " + tempStr;
            return View();
        }

        [HttpPost]
        public ActionResult DomainAnalysis4(TestResult model)
        {
            var result = DomainCount(model);
            string solution;
            int kod;
            if (result >= 7.2)
                solution = "Разработка возможна. ";
            else if (result < 7.2 && result >= 3.2)
                solution = "Разработка вероятно возможна. ";
            else if (result <= 2.4 && result >= -2.4)
                solution = "Конфликтная ситуация, для вынесения промежуточного результата о возможности недостаточно введенной информации. ";
            else solution = "Разработка невозможна. ";
            if (solution == "Разработка возможна. ")
                kod = 1;
            else if (solution == "Разработка вероятно возможна. ")
                kod = 2;
            else kod = 3;
            var result2 = new TestResult(3, "Result1");
            result2.Kod = model.Kod;
            result2.Kod2 = model.Kod2;
            result2.Kod3 = kod;
            result2.Koeff = model.Koeff + result;
            result2.IdTest = 1;
            int num;
            string res = TestCount(result2, out num);
            ViewBag.Message = "Анализ проблемной области на применимость технологии СОЗ(ЭС).";
            string tempStr = result2.Koeff.ToString(CultureInfo.InvariantCulture);
            result2.Res = model.Res + solution;
            ViewBag.Sol = result2.Res + res;
            ViewBag.Koeff = "Коэффициент применимости: " + tempStr;
            var connector = new DbConnector();
            connector.InsertTests(result2, (int)Session["id"]);
            return View();
        }

        [HttpPost]
        public ActionResult TestResult(TestResult model)
        {
            int num;
            string temp = TestCount(model, out num);
            //var connector = new DbConnector();
            model.Res = model.Res + temp;
            //connector.InsertTests(model, (int)Session["id"]);
            ViewBag.Sol = "Тест пройден:" + model.Res + temp;
            return View();
        }

      

        public ActionResult ExpertEngineer()
        {
            ViewBag.Message = "Выбор идеальной пары «эксперт - инженер по знаниям».";
            var connector = new DbConnector();
            User user = connector.getUser((int)Session["id"]);

            int id2;
            int id = ExEngCount(out id2);
            if (id != 0 && id2 != 0)
            {
                User user1 = connector.getUser(id);
                User user2 = connector.getUser(id2);
                ViewBag.Sol = "Идеальная контактная пара из предложенных:" + user1.Name + " " + user1.LastName + " и " + user2.Name + " " + user2.LastName;
            }
            else ViewBag.Sol = "Невозможно подобрать пару";

            return View(user);
        }

       [HttpPost]
        public ActionResult ExpertEngineer(User user)
        {
            ViewBag.Message = "Выбор идеальной пары «эксперт - инженер по знаниям».";
           int id2;
           int id = ExEngCount(out id2);
           if (id != 0 && id2 != 0)
           {
               var connector = new DbConnector();
               User user1 = connector.getUser(id);
               User user2 = connector.getUser(id2);
               ViewBag.Sol = "Идеальная контактная пара из предложенных:" + user1.Name + " " + user1.LastName + " и " + user2.Name + " " + user2.LastName;
               var res = new TestResult(5, user1.Name + " " + user1.LastName + " и " + user2.Name + " " + user2.LastName);
               res.IdTest = 2;
               connector.InsertTests(res, (int)Session["id"]);
           }
           else ViewBag.Sol = "Невозможно подобрать пару";
           return View();
        }

        public ActionResult Formalisms()
        {
            ViewBag.Message = "Выбор способов (моделей) представления знаний.";
            //string path = @"E:\SOZ\ryba\Web-consultant2\Web-consultant\data\Formalisms.xml";
            string path = @"D:\projects\ryba\Web-consultant2\Web-consultant2\Web-consultant\data\Formalisms.xml";
            Test model2 = XmlParsing(path, "Formalisms");
            var result = new TestResult(model2.Questions.Count, model2.NameTest);
            result.IdTest = 3;
            ViewBag.Sol = result.Res;
            ViewBag.Test = model2;
            return View(result);
        }

        [HttpPost]
        public ActionResult Formalisms(TestResult model)
        {
            int num;
            string temp = TestCount(model, out num);
            ViewBag.Message = "Выбор способов (моделей) представления знаний.";
            //string path = @"E:\SOZ\ryba\Web-consultant2\Web-consultant\data\Formalisms.xml";
            string path = @"D:\projects\ryba\Web-consultant2\Web-consultant2\Web-consultant\data\Formalisms.xml";
            Test model2 = XmlParsing(path, "Formalisms");
            var result = new TestResult(model2.Questions.Count, model2.NameTest);
            result.Res = temp;
            result.IdTest = 3;
            ViewBag.Sol = result.Res;
            ViewBag.Test = model2;

            var connector = new DbConnector();
            connector.InsertTests(result, (int)Session["id"]);
            return View("TestResult");
        }

        public ActionResult EQ()
        {
            ViewBag.Message = "EQ Tecт";
            //string path = @"E:\SOZ\ryba\Web-consultant2\Web-consultant\data\EQ.xml";
            string path = @"D:\projects\ryba\Web-consultant2\Web-consultant2\Web-consultant\data\EQ.xml";
            Test model2 = XmlParsing(path, "EQ");
            var result = new TestResult(model2.Questions.Count, model2.NameTest);
            result.IdTest = 4;
            ViewBag.Sol = result.Res;
            ViewBag.Test = model2;
            return View(result);
        }

        [HttpPost]
        public ActionResult EQ(TestResult model)
        {
            int num;
            string temp = TestCount(model, out num);
            ViewBag.Message = "EQ Tecт";
            //string path = @"E:\SOZ\ryba\Web-consultant2\Web-consultant\data\EQ.xml";
            string path = @"D:\projects\ryba\Web-consultant2\Web-consultant2\Web-consultant\data\EQ.xml";
            Test model2 = XmlParsing(path, "EQ");
            var result = new TestResult(model2.Questions.Count, model2.NameTest);
            result.Res = temp;
            result.IdTest = 4;
            ViewBag.Sol = result.Res;
            ViewBag.Test = model2;
            result.Res = num.ToString(CultureInfo.InvariantCulture);
            var connector = new DbConnector();
            connector.InsertTests(result, (int)Session["id"]);
            return View("TestResult");
        }

        public ActionResult Temp()
        {
            ViewBag.Message = "Определение темперамента";
            //string path = @"E:\SOZ\ryba\Web-consultant2\Web-consultant\data\Temp.xml";
            string path = @"D:\projects\ryba\Web-consultant2\Web-consultant2\Web-consultant\data\Temp.xml";
            Test model2 = XmlParsing(path, "Temp");
            var result = new TestResult(model2.Questions.Count, model2.NameTest);
            result.IdTest = 5;
            ViewBag.Sol = result.Res;
            ViewBag.Test = model2;
            return View(result);
        }

        [HttpPost]
        public ActionResult Temp(TestResult model)
        {
            int num;
            string temp = TestCount(model, out num);
            ViewBag.Message = "Определение темперамента";
            //string path = @"E:\SOZ\ryba\Web-consultant2\Web-consultant\data\Temp.xml";
            string path = @"D:\projects\ryba\Web-consultant2\Web-consultant2\Web-consultant\data\Temp.xml";
            Test model2 = XmlParsing(path, "Temp");
            var result = new TestResult(model2.Questions.Count, model2.NameTest);
            result.Res = temp;
            result.IdTest = 5;
            ViewBag.Sol = result.Res;
            ViewBag.Test = model2;
            result.Res = num.ToString(CultureInfo.InvariantCulture);
            var connector = new DbConnector();
            connector.InsertTests(result, (int)Session["id"]);
            return View("TestResult");
        }

        public ActionResult Prototyping()
        {
            ViewBag.Message = "Прототипирование СОЗ";
            //string path = @"E:\SOZ\ryba\Web-consultant2\Web-consultant\data\Prototyping.xml";
            string path = @"D:\projects\ryba\Web-consultant2\Web-consultant2\Web-consultant\data\Prototyping.xml";
            Test model2 = XmlParsing(path, "Prototyping");
            var result = new TestResult(model2.Questions.Count, model2.NameTest);
            result.IdTest = 6;
            ViewBag.Sol = result.Res;
            ViewBag.Test = model2;
            return View(result);
        }

        [HttpPost]
        public ActionResult Prototyping(TestResult model)
        {
            int num;
            string temp = TestCount(model, out num);
            ViewBag.Message = "Прототипирование СОЗ";
            //string path = @"E:\SOZ\ryba\Web-consultant2\Web-consultant\data\Prototyping.xml";
            string path = @"D:\projects\ryba\Web-consultant2\Web-consultant2\Web-consultant\data\Prototyping.xml";
            Test model2 = XmlParsing(path, "Prototyping");
            var result = new TestResult(model2.Questions.Count, model2.NameTest);
            result.Res = temp;
            result.IdTest = 6;
            ViewBag.Sol = result.Res;
            ViewBag.Test = model2;

            var connector = new DbConnector();
            connector.InsertTests(result, (int)Session["id"]);
            return View("TestResult");
        }


        public ActionResult Engeener()
        {
            ViewBag.Message = "Идеальный инженер";

            //string path = @"E:\SOZ\ryba\Web-consultant2\Web-consultant\data\Engeener.xml";
            string path = @"D:\projects\ryba\Web-consultant2\Web-consultant2\Web-consultant\data\Engeener.xml";
            Test model2 = XmlParsing(path, "Engeener");
            var result = new TestResult(model2.Questions.Count, model2.NameTest);
            result.IdTest = 7;
            ViewBag.Sol = result.Res;
            ViewBag.Test = model2;
            return View(result);
        }

        [HttpPost]
        public ActionResult Engeener(TestResult model)
        {
            int num;
            string temp = TestCount(model, out num);
            ViewBag.Message = "Идеальный инженер";

            //string path = @"E:\SOZ\ryba\Web-consultant2\Web-consultant\data\Engeener.xml";
            string path = @"D:\projects\ryba\Web-consultant2\Web-consultant2\Web-consultant\data\Engeener.xml";
            Test model2 = XmlParsing(path, "Engeener");
            var result = new TestResult(model2.Questions.Count, model2.NameTest);
            result.Res = temp;
            result.IdTest = 7;
            ViewBag.Sol = result.Res;
            result.Res = num.ToString(CultureInfo.InvariantCulture);
            var connector = new DbConnector();
            connector.InsertTests(result, (int)Session["id"]);
            ViewBag.Test = model2;
            return View("TestResult");
        }

        public ActionResult IdealExpert()
        {
            
            ViewBag.Message = "Идеальный эксперт";

            //string path = @"E:\SOZ\ryba\Web-consultant2\Web-consultant\data\IdealExpert.xml";
            string path = @"D:\projects\ryba\Web-consultant2\Web-consultant2\Web-consultant\data\IdealExpert.xml";
            Test model2 = XmlParsing(path, "IdealExpert");
            var result = new TestResult(model2.Questions.Count, model2.NameTest);
            ViewBag.Sol = result.Res;
            ViewBag.Test = model2;
            return View(result);
        }

        [HttpPost]
        public ActionResult IdealExpert(TestResult model)
        {
            int num;
            string temp = TestCount(model, out num);
            ViewBag.Message = "Идеальный эксперт";

            //string path = @"E:\SOZ\ryba\Web-consultant2\Web-consultant\data\IdealExpert.xml";
            string path = @"D:\projects\ryba\Web-consultant2\Web-consultant2\Web-consultant\data\IdealExpert.xml";
            Test model2 = XmlParsing(path, "IdealExpert");
            var result = new TestResult(model2.Questions.Count, model2.NameTest);
            result.Res = temp;
            result.IdTest = 8;
            ViewBag.Sol = result.Res;
            result.Res = num.ToString(CultureInfo.InvariantCulture);
            var connector = new DbConnector();
            connector.InsertTests(result, (int)Session["id"]);
            ViewBag.Test = model2;
            return View("TestResult");
        }

        public ActionResult Tools()
        {
                ViewBag.Message = "Выбор инструментальных средств для будущей СОЗ (ЭС).";
                //string path = @"E:\SOZ\ryba\Web-consultant2\Web-consultant\data\Tools.xml";
                string path = @"D:\projects\ryba\Web-consultant2\Web-consultant2\Web-consultant\data\Tools.xml";
                Test model2 = XmlParsing(path, "Tools");
                var result = new ToolsResult(38);
                ViewBag.Test = model2;
                return View(result);
        }

        [HttpPost]
        public ActionResult Tools(ToolsResult model)
        {
            string temp = ToolsCount(model);
            ViewBag.Message = "Выбор инструментальных средств для будущей СОЗ (ЭС).";
            //string path = @"E:\SOZ\ryba\Web-consultant2\Web-consultant\data\Tools.xml";
            string path = @"D:\projects\ryba\Web-consultant2\Web-consultant2\Web-consultant\data\Tools.xml";
            Test model2 = XmlParsing(path, "Tools");
            var result = new ToolsResult(model2.Questions.Count);
            ViewBag.Sol = temp;
            var connector = new DbConnector();
            connector.InsertTools(temp, (int)Session["id"]);
            return View("TestResult");
        }

        private int ExEngCount(out int res2)
        {
            int res = 0;
            res2 = 0;

            int result = 0;
            List<Slave> slaves = new List<Slave>();
            int maxRes = 0;
            int temp, eq;
            var connector = new DbConnector();
            User user = connector.getUser((int)Session["id"]);
            foreach (int id in user.UsersId)
            {
                var slave = new Slave();
                int prof = connector.GetAllPassedTests(id, out temp, out eq);
                User userSlave = connector.getUser(id);
                slave.eq = eq;
                slave.id = id;
                slave.role = userSlave.Role;
                slave.prof = prof;
                slave.temp = temp;
                slaves.Add(slave);
            }
            foreach (var slave in slaves)
            {
                if (slave.eq != 290 && slave.prof != 290 && slave.temp != 290)
                {
                    foreach (var slave1 in slaves)
                {
                    if ((slave.id != slave1.id) && (slave.role != slave1.role) && slave1.eq != 290 && slave1.prof != 290 && slave1.temp != 290)
                    {
                        if ((slave.temp == 1 && slave.temp == 3) || (slave.temp == 2 && slave.temp == 4) || (slave.temp == 3 && slave.temp == 1) || (slave.temp == 4 && slave.temp == 2))
                            result = 5;
                        if ((slave.temp == 1 && slave.temp == 1) || (slave.temp == 1 && slave.temp == 4) || (slave.temp == 2 && slave.temp == 3) || (slave.temp == 3 && slave.temp == 2) || (slave.temp == 4 && slave.temp == 1) || (slave.temp == 4 && slave.temp == 4))
                            result = 4;
                        if ((slave.temp == 1 && slave.temp == 2) || (slave.temp == 2 && slave.temp == 1) || (slave.temp == 2 && slave.temp == 2) || (slave.temp == 3 && slave.temp == 4) || (slave.temp == 4 && slave.temp == 3))
                            result = 3;
                        if (slave.temp == 3 && slave.temp == 3)
                            result = 2;

                        int eqsh = Math.Abs(slave.eq - slave.eq);
                        if (eqsh < 3)
                            result += 5;
                        else if (eqsh < 8)
                            result += 4;
                        else if (eqsh < 10)
                            result += 3;
                        else if (eqsh < 15)
                            result += 2;

                        if (slave.role == 2)
                        {
                            if (slave.prof == 40)
                                result += 5;
                            else if (slave.prof < 40 && slave.prof >= 27)
                                result += 4;
                            else if (slave.prof < 27 && slave.prof >= 18)
                                result += 3;
                            else if (slave.prof < 18 && slave.prof >= 8)
                                result += 2;

                            if (slave1.prof == 34)
                                result += 5;
                            else if (slave1.prof < 34 && slave1.prof >= 22)
                                result += 4;
                            else if (slave1.prof < 22 && slave1.prof >= 16)
                                result += 3;
                            else if (slave1.prof < 16 && slave1.prof >= 10)
                                result += 2;
                        }
                        if (result >= maxRes)
                        {
                            maxRes = result;
                            res = slave.id;
                            res2 = slave1.id;
                        }
                    }
                }
                } 
            }

            return res;
        }

        private class Slave
        {
            public int id;
            public int temp; 
            public int prof;
            public int eq;
            public int role;
        }

        private Test XmlParsing(string path, string name)
        {
            var model = new Test(name);

            var xml = new XmlDocument();
            xml.Load(path);
            XmlNodeList xmlNodeList = xml.SelectNodes("/catalog/cd");
            int j = 0;
            if (xmlNodeList != null)
                foreach (XmlNode n in xmlNodeList)
                {
                    XmlNode selectSingleNode = n.SelectSingleNode("question");
                    if (selectSingleNode != null)
                        model.Questions.Add(new Question(selectSingleNode.InnerText));
                    XmlNode xmlNodeList2 = n.LastChild;
                    foreach (XmlNode m in xmlNodeList2.ChildNodes)
                    {
                        model.Questions[j].Answers.Add(m.InnerText);
                    }
                    j++;
                }
            return model;
        }

        private double DomainCount(TestResult res)
        {

            double result = 0;
            if (res.NameTest == "DomainAnalysis")
            {
                for (int i = 0; i < 2; i++)
                {
                    if (res.Answers[i] == "Да")
                        result += 7.2;
                    else if (res.Answers[i] == "Скорее да, чем нет")
                        result += 3.6;
                    else if (res.Answers[i] == "Скорее нет, чем да")
                        result -= 3.6;
                    else if (res.Answers[i] == "Нет")
                        result -= 7.2;
                }
                for (int i = 2; i < 5; i++)
                {
                    if (res.Answers[i] == "Да")
                        result += 0.8;
                    else if (res.Answers[i] == "Скорее да, чем нет")
                        result += 0.4;
                    else if (res.Answers[i] == "Скорее нет, чем да")
                        result -= 0.4;
                    else if (res.Answers[i] == "Нет")
                        result -= 0.8;
                }
                

            }
            else if (res.NameTest == "DomainAnalysis2")
            {
                for (int i = 0; i < 5; i++)
                {
                    if (i == 2)
                    {
                        if (res.Answers[i] == "Нет")
                            result += 7.2;
                        else if (res.Answers[i] == "Скорее нет, чем да")
                            result += 3.6;
                    }
                    else
                    {
                        if (res.Answers[i] == "Да")
                            result += 7.2;
                        else if (res.Answers[i] == "Скорее да, чем нет")
                            result += 3.6;
                    }
                }
                
            }
            else if (res.NameTest == "DomainAnalysis3")
            {
                for (int i = 0; i < 3; i++)
                {
                    if (i == 2)
                    {
                        if (res.Answers[2] == "Да")
                            result -= 0.8;
                        else if (res.Answers[2] == "Скорее да, чем нет")
                            result -= 0.4;
                        else if (res.Answers[2] == "Скорее нет, чем да")
                            result += 0.4;
                        else if (res.Answers[2] == "Нет")
                            result += 0.8;
                    }
                    else 
                    {
                        if (res.Answers[i] == "Да")
                            result += 7.2;
                        else if (res.Answers[i] == "Скорее да, чем нет")
                            result += 3.6;
                        else if (res.Answers[i] == "Скорее нет, чем да")
                            result -= 3.6;
                        else if (res.Answers[i] == "Нет")
                            result -= 7.2;
                    }
                }
                for (int i = 3; i < 7; i++)
                {
                    if (res.Answers[i] == "Да")
                        result += 0.8;
                    else if (res.Answers[i] == "Скорее да, чем нет")
                        result += 0.4;
                    else if (res.Answers[i] == "Скорее нет, чем да")
                        result -= 0.4;
                    else if (res.Answers[i] == "Нет")
                        result -= 0.8;
                }
                
            }
            return result;
        }

        private string TestCount(TestResult res, out int n)
        {
            int resultE = 0;
            int resultLozh = 0;
            int resultExtravert = 0;
            int resultUst = 0;
            int result1 = 0;
            int result2 = 0;
            int result3 = 0;
            int result4 = 0;
            int result5 = 0;
            int result = 0;
            int resultI = 0;
            string solution = null;
            n = result;

            if (res.NameTest == "Result1")
            {
                if (res.Koeff >= 21.6)
                    solution = "Вывод: Технология применима.";
                else solution = ". Вывод: Технология неприменима.";
                n = resultI;
            }

            else if (res.NameTest == "Formalisms")
            {
                if ((res.Answers[3] == "Жесткие" || res.Answers[3] == "Мягкие") & res.Answers[4] == "Глубинные")
                {
                    solution =
                        "Целесообразно использовать модели в виде семантических сетей или фреймов (объектно-ориентированные модели).";
                }
                else if (res.Answers[0] == "Простые" & res.Answers[1] == "Дедуктивный способ" &
                         res.Answers[2] == "Выpaжаются в языке исчисления предикатов")
                {
                    solution = "Целесообразно использовать логические модели.";
                }
                else if (res.Answers[0] == "Простые" & res.Answers[1] == "Индуктивный способ" &
                         res.Answers[2] == "Небольшое кол-во рассуждений на понятиях")
                {

                    solution = "Целесообразно использовать индуктивные модели.";
                }
                else if (res.Answers[0] == "Сложные" &
                         res.Answers[1] == "Способ рассуждения посредством выдвижения гипотез" &
                         res.Answers[2] == "Большое кол-во рассуждений на понятиях")
                {
                    solution = "Целесообразно использовать сетевые модели.";
                }
                else if (res.Answers[0] == "Сложные" & res.Answers[1] == "Дедуктивный способ" &
                         res.Answers[2] == "Небольшое кол-во рассуждений на понятиях")
                {
                    solution =
                        "Целесообразно использовать наследственно конечные модели (типа тезаурусов).";
                }
                else if (res.Answers[0] == "Сложные" &
                         (res.Answers[1] == "Дедуктивный способ" ||
                          res.Answers[1] == "Способ рассуждений по аналогии") &
                         res.Answers[2] == "Большое кол-во рассуждений на понятиях")
                {
                    solution = "Целесообразно использовать фреймовые модели.";
                }
                else if (res.Answers[0] == "Сложные" &
                         res.Answers[1] == "Способ рассуждения посредством выдвижения гипотез" &
                         res.Answers[2] == "Структура понятий не ясна")
                {
                    solution = "Целесообразно использовать сетевые модели.";
                }
                else if (res.Answers[0] == "Простые" & res.Answers[1] == "Дедуктивный способ" &
                         res.Answers[2] == "Большое кол-во рассуждений на понятиях")
                {
                    solution = "Целесообразно использовать продукционные модели.";
                }
                else if (res.Answers[0] == "Простые" & res.Answers[1] == "Индуктивный способ" &
                         res.Answers[2] == "Большое кол-во рассуждений на понятиях")
                {
                
                solution = "Подходящий формализм отсутствует";
            }
            else if (res.Answers[0] == "Простые" &
                     res.Answers[1] == "Дедуктивный способ" &
                     res.Answers[2] == "Выpaжаются в языке исчисления предикатов" &
                     res.Answers[3] == "Жесткие" & res.Answers[4] == "Поверхностные")
            {
                solution = "Целесообразно использовать логические модели.";
            }
            else if (res.Answers[0] == "Простые" &
                     res.Answers[1] == "Дедуктивный способ" &
                     res.Answers[2] == "Большое кол-во рассуждений на понятиях" &
                     (res.Answers[3] == "Жесткие" || res.Answers[3] == "Мягкие") &
                     res.Answers[4] == "Поверхностные")
            {
                solution =
                    "Целесообразно использовать продукционные модели.";
            }
            else solution = "Подходящий формализм отсутвует";
                n = resultI;
            }

            else if (res.NameTest == "IdealExpert")
            {

                
                    if (res.Answers[0] == "ДА")
                        resultI += 2;
                    else if (res.Answers[0] == "Скорее да, чем нет")
                        resultI += 1;
                    else if (res.Answers[0] == "Скорее нет, чем да")
                        resultI -= 1;
                    else if (res.Answers[0] == "Нет")
                        resultI -= 2;

                    if (res.Answers[1] == "Всегда")
                        resultI += 2;
                    else if (res.Answers[1] == "Часто")
                        resultI += 1;
                    else if (res.Answers[1] == "Иногда")
                        resultI -= 1;
                    else if (res.Answers[1] == "Редко")
                        resultI -= 2;

                    else if (res.Answers[2] == "Никогда")
                        resultI += 2;
                    else if (res.Answers[2] == "Редко")
                        resultI += 1;
                    else if (res.Answers[2] == "Иногда")
                        resultI -= 1;
                    else if (res.Answers[2] == "Часто")
                        resultI -= 2;
                

                for (int ii = 3; ii < 17; ii++)
                {
                    if ((ii == 2) & (res.Answers[2] == "Никогда"))
                        resultI += 2;
                    else if ((ii == 2) & (res.Answers[2] == "Редко"))
                        resultI += 1;
                    else if ((ii == 2) & (res.Answers[2] == "Иногда"))
                        resultI -= 1;
                    else if ((ii == 2) & (res.Answers[2] == "Часто"))
                        resultI -= 2;
                    else if ((res.Answers[ii] == "Да") || (res.Answers[ii] == "Всегда") || (res.Answers[ii] == "Важна") || (res.Answers[ii] == "Не трудно"))
                        resultI += 2;
                    else if ((res.Answers[ii] == "Скорее да, чем нет") || (res.Answers[ii] == "Скорее да") || (res.Answers[ii] == "Часто") || (res.Answers[ii] == "Скорее важна,чем нет") || (res.Answers[ii] == "Скорее не трудно"))
                        resultI += 1;
                    else if ((res.Answers[ii] == "Скорее нет, чем да") || (res.Answers[ii] == "Скорее нет") || (res.Answers[ii] == "Иногда") || (res.Answers[ii] == "Очень приблизительно") || (res.Answers[ii] == "Скорее не важна") || (res.Answers[ii] == "Скорее трудно, чем нет"))
                        resultI -= 1;
                    else if ((res.Answers[ii] == "Нет") || (res.Answers[ii] == "Редко") || (res.Answers[ii] == "Не важна") || (res.Answers[ii] == "Трудно"))
                        resultI -= 1;
                }
                if (resultI == 34)
                    solution = "Вы идеальный эксперт для разработки СОЗ";
                else if ((resultI >= 22) & (resultI < 34))
                    solution = "Мы готовы воспользоваться Вашими услугами в качестве эксперта для данной задачи";
                else if ((resultI > 16) & (resultI < 22))
                    solution = "В принципе мы можем попробовать начать нашу работу";
                else if ((resultI >= 10) & (resultI < 16))
                    solution = "К сожалению наше сотрудничество будет затруднительным";
                else if (resultI < 10)
                    solution = "Извините вы нам не подходите";
                n = resultI;
            }

            else if (res.NameTest == "Engeener")
            {
                for (int i = 0; i < 20; i++)
                {
                    if (res.Answers[i] == "Да")
                        resultE += 2;
                    else if (res.Answers[i] == "Скорее да")
                        resultE += 1;
                    else if (res.Answers[i] == "Нет")
                        resultE -= 2;
                    else if (res.Answers[i] == "Скорее нет")
                        resultE -= 1;


                }
                if (resultE == 40)
                    solution = "Вы - идеальный инженер для разработки СОЗ.";
                else if ((resultE >= 27) & (resultE < 40))
                    solution = "Мы готовы воспользоваться Вашими услугами в качестве инженера для данной задачи.";
                else if ((resultE > 18) & (resultE < 27))
                    solution = "В принципе, мы можем попробовать начать нашу работу.";
                else if ((resultE >= 8) & (resultE < 18))
                    solution = "К сожалению наше сотрудничество будет затруднительным.";
                else if (resultE < 8)
                    solution = "Извините, вы нам не подходите.";
                n = resultE;
            }

            else if (res.NameTest == "Temp")
            {
                for (int i = 0; i < 56; i++)
                {
                    if ((i == 6 || i == 24 || i == 36) & (res.Answers[i] == "Да"))
                        resultLozh += 1;
                    else if ((i == 12 || i == 18 || i == 30 || i == 42 || i == 48 || i == 54) & (res.Answers[i] == "Нет"))
                        resultLozh += 1;
                    else if ((i == 1 || i == 3 || i == 8 || i == 10 || i == 13 || i == 17 || i == 22 || i == 25 || i == 27 || i == 39 || i == 44 || i == 46 || i == 49 || i == 53 || i == 56) & (res.Answers[i] == "Да"))
                        resultExtravert += 1;
                    else if ((i == 5 || i == 15 || i == 20 || i == 29 || i == 32 || i == 34 || i == 37 || i == 41 || i == 51) & (res.Answers[i] == "Нет"))
                        resultExtravert += 1;
                    else if ((i == 2 || i == 4 || i == 7 || i == 9 || i == 11 || i == 14 || i == 16 || i == 19 || i == 21 || i == 23 || i == 26 || i == 28 || i == 31 || i == 33 || i == 35 || i == 38 || i == 40 || i == 43 || i == 45 || i == 47 || i == 50 || i == 52 || i == 55 || i == 57) & (res.Answers[i] == "Да"))
                        resultUst += 1;
                }
                if (resultLozh > 5)
                {
                    solution = "Вы были неискренни в своих ответах";
                    n = 0;
                }
                else if ((resultUst < 12.5) & (resultExtravert < 12.5))
                {
                    solution = "Флегматик";
                    n = 1;
                }
                else if ((resultUst < 12.5) & (resultExtravert > 12.5))
                {
                    solution = "Сангвиник";
                    n = 2;
                }
                else if ((resultUst > 12.5) & (resultExtravert > 12.5))
                {
                    solution = "Холерик";
                    n = 3;
                }
                else if ((resultUst > 12.5) & (resultExtravert < 12.5))
                {
                    solution = "Меланхолик";
                    n = 4;
                }

                
            }

            else if (res.NameTest == "Prototyping")
            {
                if ((res.Answers[0] == "Крупная" || res.Answers[0] == "Большая") & (res.Answers[1] == "Интегрированные подзадачи" || res.Answers[1] == "Сильнопересекающиеся подзадачи"))
                    solution = "Оптимальной стратегией прототипирования является создание скелетного прототипа.";
                else if ((res.Answers[0] == "Крупная" || res.Answers[0] == "Большая") & (res.Answers[1] == "Слабопересекающиеся подзадачи" || res.Answers[1] == "Непересекающиеся подзадачи"))
                    solution = "Оптимальной стратегией прототипирования является создание прототипов для каждой из подзадач.";
                else if ((res.Answers[0] == "Небольшая" || res.Answers[0] == "Маленькая") & (res.Answers[1] == "Слабопересекающиеся подзадачи" || res.Answers[1] == "Непересекающиеся подзадачи" || res.Answers[1] == "Интегрированные подзадачи" || res.Answers[1] == "Сильнопересекающиеся подзадачи"))
                    solution = "Оптимальной стратегией прототипирования является создание начального прототипа для всей задачи.";
                else solution = "Оптимальной стратегии нет.";

            }

            else if (res.NameTest == "EQ")
            {
                for (int i = 0; i < 29; i++)
                {
                    if (res.Answers[i] == "Полностью согласен")
                    {
                        result += 3;

                        if (i == 0 || i == 1 || i == 3 || i == 16 || i == 18 || i == 24)    //1, 2, 4, 17, 19, 25
                            result1 += 3;
                        if (i == 2 || i == 6 || i == 7 || i == 9 || i == 17 || i == 29)    //3, 7, 8, 10, 18, 30
                            result2 += 3;
                        if (i == 4 || i == 5 || i == 12 || i == 13 || i == 15 || i == 22)    //5, 6, 13, 14, 16, 22
                            result3 += 3;
                        if (i == 8 || i == 10 || i == 19 || i == 20 || i == 22 || i == 27)    //9, 11, 20, 21, 23, 28
                            result4 += 3;
                        if (i == 11 || i == 14 || i == 24 || i == 25 || i == 26 || i == 28)    //12, 15, 24, 26, 27, 29
                            result5 += 3;
                    }

                    else if (res.Answers[i] == "В основном согласен")
                    {
                        result += 2;
                        if (i == 0 || i == 1 || i == 3 || i == 16 || i == 18 || i == 24)    //1, 2, 4, 17, 19, 25
                            result1 += 2;
                        if (i == 2 || i == 6 || i == 7 || i == 9 || i == 17 || i == 29)    //3, 7, 8, 10, 18, 30
                            result2 += 2;
                        if (i == 4 || i == 5 || i == 12 || i == 13 || i == 15 || i == 22)    //5, 6, 13, 14, 16, 22
                            result3 += 2;
                        if (i == 8 || i == 10 || i == 19 || i == 20 || i == 22 || i == 27)    //9, 11, 20, 21, 23, 28
                            result4 += 2;
                        if (i == 11 || i == 14 || i == 24 || i == 25 || i == 26 || i == 28)    //12, 15, 24, 26, 27, 29
                            result5 += 2;
                    }
                    else if (res.Answers[i] == "Отчасти согласен")
                    {
                        result += 1;
                        if (i == 0 || i == 1 || i == 3 || i == 16 || i == 18 || i == 24)    //1, 2, 4, 17, 19, 25
                            result1 += 1;
                        if (i == 2 || i == 6 || i == 7 || i == 9 || i == 17 || i == 29)    //3, 7, 8, 10, 18, 30
                            result2 += 1;
                        if (i == 4 || i == 5 || i == 12 || i == 13 || i == 15 || i == 22)    //5, 6, 13, 14, 16, 22
                            result3 += 1;
                        if (i == 8 || i == 10 || i == 19 || i == 20 || i == 22 || i == 27)    //9, 11, 20, 21, 23, 28
                            result4 += 1;
                        if (i == 11 || i == 14 || i == 24 || i == 25 || i == 26 || i == 28)    //12, 15, 24, 26, 27, 29
                            result5 += 1;
                    }
                    else if (res.Answers[i] == "Полностью не согласен")
                    {
                        result -= 3;
                        if (i == 0 || i == 1 || i == 3 || i == 16 || i == 18 || i == 24)    //1, 2, 4, 17, 19, 25
                            result1 -= 3;
                        if (i == 2 || i == 6 || i == 7 || i == 9 || i == 17 || i == 29)    //3, 7, 8, 10, 18, 30
                            result2 -= 3;
                        if (i == 4 || i == 5 || i == 12 || i == 13 || i == 15 || i == 22)    //5, 6, 13, 14, 16, 22
                            result3 -= 3;
                        if (i == 8 || i == 10 || i == 19 || i == 20 || i == 22 || i == 27)    //9, 11, 20, 21, 23, 28
                            result4 -= 3;
                        if (i == 11 || i == 14 || i == 24 || i == 25 || i == 26 || i == 28)    //12, 15, 24, 26, 27, 29
                            result5 -= 3;
                    }
                    else if (res.Answers[i] == "В основном не согласен")
                    {
                        result -= 2;
                        if (i == 0 || i == 1 || i == 3 || i == 16 || i == 18 || i == 24)    //1, 2, 4, 17, 19, 25
                            result1 -= 2;
                        if (i == 2 || i == 6 || i == 7 || i == 9 || i == 17 || i == 29)    //3, 7, 8, 10, 18, 30
                            result2 -= 2;
                        if (i == 4 || i == 5 || i == 12 || i == 13 || i == 15 || i == 22)    //5, 6, 13, 14, 16, 22
                            result3 -= 2;
                        if (i == 8 || i == 10 || i == 19 || i == 20 || i == 22 || i == 27)    //9, 11, 20, 21, 23, 28
                            result4 -= 2;
                        if (i == 11 || i == 14 || i == 24 || i == 25 || i == 26 || i == 28)    //12, 15, 24, 26, 27, 29
                            result5 -= 2;
                    }
                    else if (res.Answers[i] == "Отчасти не согласен")
                    {
                        result -= 1;
                        if (i == 0 || i == 1 || i == 3 || i == 16 || i == 18 || i == 24)    //1, 2, 4, 17, 19, 25
                            result1 -= 1;
                        if (i == 2 || i == 6 || i == 7 || i == 9 || i == 17 || i == 29)    //3, 7, 8, 10, 18, 30
                            result2 -= 1;
                        if (i == 4 || i == 5 || i == 12 || i == 13 || i == 15 || i == 22)    //5, 6, 13, 14, 16, 22
                            result3 -= 1;
                        if (i == 8 || i == 10 || i == 19 || i == 20 || i == 22 || i == 27)    //9, 11, 20, 21, 23, 28
                            result4 -= 1;
                        if (i == 11 || i == 14 || i == 24 || i == 25 || i == 26 || i == 28)    //12, 15, 24, 26, 27, 29
                            result5 -= 1;
                    }


                }
                if (result >= 70)
                    solution = "Высокий уровень EQ ";
                else if (result <= 39)
                    solution = "Низкий уровень EQ ";
                else solution = "Средний уровень EQ ";

                if (result1 >= 14)
                    solution += "и высокая Эмоциональная осведомленность ";
                else if (result1 <= 7)
                    solution += "и низкая Эмоциональная осведомленность ";
                else solution += "и нормальная Эмоциональная осведомленность ";

                if (result2 >= 14)
                    solution += "и высокое Управление своими эмоциями";
                else if (result2 <= 7)
                    solution += "и низкое Управление своими эмоциями";
                else solution += "и нормальное Управление своими эмоциями";

                if (result3 >= 14)
                    solution += "и высокая Самомотивация ";
                else if (result3 <= 7)
                    solution += "и низкая Самомотивация ";
                else solution += "и нормальная Самомотивация ";

                if (result4 >= 14)
                    solution += "и высокая Эмпатия ";
                else if (result4 <= 7)
                    solution += "и низкая Эмпатия ";
                else solution += "и нормальная Эмпатия ";

                if (result5 >= 14)
                    solution += "и высокое Управление эмоциями других людей.";
                else if (result5 <= 7)
                    solution += "и низкое Управление эмоциями других людей.";
                else solution += "и нормальное Управление эмоциями других людей.";
                n = result;
            }
            return solution;
        }

        private string ToolsCount(ToolsResult res)
        {
            
            string solutionTools = "";
     
                if ((res.Answers[1] == false) & (res.Answers[8] == false) & (res.Answers[10] == false) & (res.Answers[21] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false))
                    solutionTools += " 1st class Fusion HT,";
                if ((res.Answers[0] == false) & (res.Answers[2] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[13] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[21] == false) & (res.Answers[23] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += "  Acom,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[11] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false))
                    solutionTools += "  Acquaint,";
                if ((res.Answers[0] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[14] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[32] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += "  ADS,";
                if ((res.Answers[0] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[13] == false) & (res.Answers[14] == false) & (res.Answers[15] == false) & (res.Answers[17] == false) & (res.Answers[19] == false) & (res.Answers[20] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += "  AIDA,";
                if ((res.Answers[0] == false) & (res.Answers[2] == false) & (res.Answers[3] == false) & (res.Answers[4] == false) & (res.Answers[5] == false) & (res.Answers[6] == false) & (res.Answers[7] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[14] == false) & (res.Answers[19] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[27] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " ALEX,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[4] == false) & (res.Answers[5] == false) & (res.Answers[6] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[12] == false) & (res.Answers[14] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " APES,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[5] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[23] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[32] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " Arity/Expert,";
                if ((res.Answers[0] == false) & (res.Answers[7] == false) & (res.Answers[12] == false) & (res.Answers[19] == false) & (res.Answers[25] == false) & (res.Answers[26] == false))
                    solutionTools += " ART,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[5] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[13] == false) & (res.Answers[14] == false) & (res.Answers[15] == false) & (res.Answers[16] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[20] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " ASPES,";
                if ((res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[5] == false) & (res.Answers[6] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[14] == false) & (res.Answers[15] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[20] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[24] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " Auto-Intelegence,";
                if ((res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[6] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[14] == false) & (res.Answers[15] == false) & (res.Answers[16] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[32] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " Beagle,";
                if ((res.Answers[0] == false) & (res.Answers[2] == false) & (res.Answers[3] == false) & (res.Answers[5] == false) & (res.Answers[6] == false) & (res.Answers[7] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[16] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[20] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " BLOBS,";
                if ((res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[3] == false) & (res.Answers[4] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[13] == false) & (res.Answers[14] == false) & (res.Answers[15] == false) & (res.Answers[16] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[20] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " CLASS,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[4] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[13] == false) & (res.Answers[14] == false) & (res.Answers[15] == false) & (res.Answers[16] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[20] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " CODAR,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[3] == false) & (res.Answers[4] == false) & (res.Answers[5] == false) & (res.Answers[6] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[13] == false) & (res.Answers[14] == false) & (res.Answers[15] == false) & (res.Answers[16] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[20] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " COGNATE,";
                if ((res.Answers[0] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[14] == false) & (res.Answers[15] == false) & (res.Answers[16] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[20] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " CognitlF,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[6] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[14] == false) & (res.Answers[22] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " CRYSTAL,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[5] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[13] == false) & (res.Answers[14] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " CxPERT,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[5] == false) & (res.Answers[6] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[13] == false) & (res.Answers[14] == false) & (res.Answers[15] == false) & (res.Answers[16] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[20] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " DUCK,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[4] == false) & (res.Answers[7] == false) & (res.Answers[9] == false) & (res.Answers[14] == false) & (res.Answers[19] == false) & (res.Answers[20] == false) & (res.Answers[24] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[32] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " Envisage,";
                if ((res.Answers[0] == false) & (res.Answers[2] == false) & (res.Answers[7] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[19] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " Ehitool,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[7] == false) & (res.Answers[9] == false) & (res.Answers[11] == false) & (res.Answers[14] == false) & (res.Answers[17] == false) & (res.Answers[19] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " ES Environment,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[16] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[20] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[24] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " ES/AG,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[5] == false) & (res.Answers[6] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[13] == false) & (res.Answers[14] == false) & (res.Answers[16] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[20] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " ESIE,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[23] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " ESP-Advisor,";
                if ((res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[14] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[23] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " EX-TRAIN,";
                if ((res.Answers[0] == false) & (res.Answers[2] == false) & (res.Answers[7] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[20] == false) & (res.Answers[24] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " EXCORE,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[13] == false) & (res.Answers[15] == false) & (res.Answers[16] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[20] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " Experfacts,";
                if ((res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[14] == false) & (res.Answers[15] == false) & (res.Answers[16] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[20] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " Experkit,";
                if ((res.Answers[0] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[6] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[13] == false) & (res.Answers[14] == false) & (res.Answers[15] == false) & (res.Answers[16] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[20] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " Expert-2,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[5] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[14] == false) & (res.Answers[18] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " Expert Edge,";
                if ((res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[5] == false) & (res.Answers[6] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[13] == false) & (res.Answers[14] == false) & (res.Answers[15] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " Expert Ease,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[23] == false) & (res.Answers[27] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " EXSYS,";
                if ((res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[13] == false) & (res.Answers[14] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " Flist Expert,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[4] == false) & (res.Answers[6] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[11] == false) & (res.Answers[14] == false) & (res.Answers[16] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[20] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " FLOPS,";
                if ((res.Answers[0] == false) & (res.Answers[2] == false) & (res.Answers[7] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[12] == false) & (res.Answers[13] == false) & (res.Answers[16] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[20] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " FrameKit,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[11] == false) & (res.Answers[13] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[25] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " GEST,";
                if ((res.Answers[0] == false) & (res.Answers[2] == false) & (res.Answers[7] == false) & (res.Answers[9] == false) & (res.Answers[18] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " Gold Works,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[14] == false) & (res.Answers[23] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " GURU,";
                if ((res.Answers[0] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[5] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[14] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[20] == false) & (res.Answers[21] == false) & (res.Answers[23] == false) & (res.Answers[25] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " Humble,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[3] == false) & (res.Answers[4] == false) & (res.Answers[5] == false) & (res.Answers[6] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[13] == false) & (res.Answers[14] == false) & (res.Answers[15] == false) & (res.Answers[16] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[20] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " ICL Adviser,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[4] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[14] == false) & (res.Answers[18] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " INSIHT+,";
                if ((res.Answers[0] == false) & (res.Answers[7] == false) & (res.Answers[9] == false) & (res.Answers[19] == false) & (res.Answers[23] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " Intelligence Computer,";
                if ((res.Answers[2] == false) & (res.Answers[8] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[32] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " KDS3,";
                if ((res.Answers[0] == false) & (res.Answers[7] == false) & (res.Answers[9] == false) & (res.Answers[12] == false) & (res.Answers[19] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[32] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " KEE,";
                if ((res.Answers[0] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[14] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " KES,";
                if ((res.Answers[0] == false) & (res.Answers[2] == false) & (res.Answers[7] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[12] == false) & (res.Answers[20] == false) & (res.Answers[23] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " Keystone,";
                if ((res.Answers[2] == false) & (res.Answers[3] == false) & (res.Answers[4] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[14] == false) & (res.Answers[15] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[20] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " KISS,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[5] == false) & (res.Answers[6] == false) & (res.Answers[8] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " KNOWOL+,";
                if ((res.Answers[0] == false) & (res.Answers[2] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[13] == false) & (res.Answers[14] == false) & (res.Answers[17] == false) & (res.Answers[19] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " Leonardo,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[4] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[11] == false) & (res.Answers[14] == false) & (res.Answers[18] == false) & (res.Answers[27] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " M.1,";
                if ((res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[5] == false) & (res.Answers[7] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[14] == false) & (res.Answers[19] == false) & (res.Answers[23] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " MacSmarts,";
                if ((res.Answers[0] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[6] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[13] == false) & (res.Answers[14] == false) & (res.Answers[16] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[25] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " MICE,";
                if ((res.Answers[0] == false) & (res.Answers[2] == false) & (res.Answers[6] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[13] == false) & (res.Answers[14] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[20] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[26] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " MUSE,";
                if ((res.Answers[0] == false) & (res.Answers[2] == false) & (res.Answers[7] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[13] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[32] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " NEXPERT Object,";
                if ((res.Answers[0] == false) & (res.Answers[2] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[13] == false) & (res.Answers[14] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[33] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " Personal Consultant+,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[7] == false) & (res.Answers[9] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[23] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[37] == false))
                    solutionTools += " Rbest,";
                if ((res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[12] == false) & (res.Answers[13] == false) & (res.Answers[14] == false) & (res.Answers[18] == false) & (res.Answers[23] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " SuperExpert,";
                if ((res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[6] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[13] == false) & (res.Answers[14] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[21] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " TIMM,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[5] == false) & (res.Answers[6] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[12] == false) & (res.Answers[14] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[20] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " TOPSI,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[13] == false) & (res.Answers[14] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " TWAICE,";
                if ((res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[14] == false) & (res.Answers[23] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[32] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " VP-expert,";
                if ((res.Answers[0] == false) & (res.Answers[2] == false) & (res.Answers[5] == false) & (res.Answers[6] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[12] == false) & (res.Answers[13] == false) & (res.Answers[14] == false) & (res.Answers[16] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[23] == false) & (res.Answers[25] == false) & (res.Answers[26] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[32] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " Wizdom,";
                if ((res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[14] == false) & (res.Answers[27] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " Xi Plus,";
                if ((res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[4] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[14] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[32] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " Xpert Rule,";
                if ((res.Answers[0] == false) & (res.Answers[1] == false) & (res.Answers[2] == false) & (res.Answers[7] == false) & (res.Answers[8] == false) & (res.Answers[9] == false) & (res.Answers[10] == false) & (res.Answers[11] == false) & (res.Answers[12] == false) & (res.Answers[13] == false) & (res.Answers[15] == false) & (res.Answers[16] == false) & (res.Answers[17] == false) & (res.Answers[18] == false) & (res.Answers[19] == false) & (res.Answers[20] == false) & (res.Answers[21] == false) & (res.Answers[22] == false) & (res.Answers[23] == false) & (res.Answers[24] == false) & (res.Answers[27] == false) & (res.Answers[28] == false) & (res.Answers[29] == false) & (res.Answers[30] == false) & (res.Answers[31] == false) & (res.Answers[32] == false) & (res.Answers[33] == false) & (res.Answers[34] == false) & (res.Answers[35] == false) & (res.Answers[36] == false) & (res.Answers[37] == false))
                    solutionTools += " XSYS,";

          
            return solutionTools;
        }
    }
}